import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi"


// 查询警务派警列表   /dev-api/bussiness/SendPolice/list
export function getSendPoliceList(data,query) {
  return request({
    url: '/bussiness/SendPolice/list',
    method: 'post',
    params: query,
    data: data,
    isEncrypt: false
  })
}
// 查询警务派警详情  /dev-api/bussiness/SendPolice/info
export function getSendPoliceInfo(id) {
  return request({
    url: '/bussiness/SendPolice/info?id=' + id,
    method: 'get',
    isEncrypt: false
  })
}
// 新增派警  /dev-api/bussiness/SendPolice/add
export function createSendPolice(data) {
  return request({
    url: '/bussiness/SendPolice/add',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}
// 编辑 警务派警 /dev-api/bussiness/SendPolice/edit
export function editSendPolice(data) {
  return request({
    url: '/bussiness/SendPolice/edit',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}
// 编辑(批量修改派警人员信息) 警务派警 /dev-api/bussiness/SendPolice/batchEdit
export function batchEditSendPolice(data) {
  return request({
    url: '/bussiness/SendPolice/batchEdit',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}
// 警务派警删除  /dev-api/bussiness/SendPolice/remove
export function deleteSendPolice(id) {
  return request({
    url: '/bussiness/SendPolice/remove?ids=' + id,
    method: 'post',
    isEncrypt: false
  })
}

// 警务派警取消-批量取消  /dev-api/bussiness/SendPolice/sendPoliceCancel
export function sendPoliceCancel(id) {
  return request({
    url: '/bussiness/SendPolice/sendPoliceCancel?id=' + id,
    method: 'post',
    isEncrypt: false
  })
}

// 获取警务派警确认列表 /dev-api​/bussiness​/SendPolice​/confirmList
export function getSendPoliceConfirmList(data,query) {
  return request({
    url: '/bussiness/SendPolice/confirmList',
    method: 'post',
    params: query,
    data: data,
    isEncrypt: false
  })
}
// 根据ID获取警务派警确认详情 /dev-api/bussiness/SendPolice/info
export function getSendPoliceConfirmInfo(id) {
  return request({
    url: '/bussiness/SendPolice/info?id=' + id,
    method: 'get',
  })
}

// 警务派警确认按钮 /dev-api/bussiness/SendPolice/confirm
export function SendPoliceConfirm(id) {
  return request({
    url: '/bussiness/SendPolice/confirm?id=' + id,
    method: 'post',
  })
}

// 警务派警回退按钮 /dev-api/bussiness/SendPolice/returned
export function SendPolicereturned(data) {
  return request({
    url: '/bussiness/SendPolice/returned',
    method: 'post',
    data:data,
    isEncrypt: false
  })
}

// 执行警务登记列表  /dev-api/bussiness/SendPolice/registerList
export function SendPoliceregisterList(data,query) {
  return request({
    url: '/bussiness/SendPolice/registerList',
    method: 'post',
    params: query,
    data: data,
    isEncrypt: false
  })
}
// 执行警务登记确认登记按钮  /dev-api/bussiness/SendPolice/register
export function SendPoliceregister(data,query) {
  return request({
    url: '/bussiness/SendPolice/register',
    method: 'post',
    params: query,
    data: data,
    isEncrypt: false
  })
}